@echo off
echo Setting up Python environment...

:: 设置Python路径
set PYTHON_PATH=C:\Users\yongming.xu\AppData\Local\Programs\Python\Python39
set PATH=%PYTHON_PATH%;%PYTHON_PATH%\Scripts;%PATH%

echo Python path set to: %PYTHON_PATH%
echo.
echo Current Python version:
python --version
echo.
echo Python location:
where python
echo.
echo Environment ready! You can now run:
echo python manage.py runserver 0.0.0.0:8000
echo.
cmd /k 